package com.hd.demo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description:
 * @Author: Wangzz
 * @Version: 1.0.0
 * @CreateDate: Created in 2021/12/5 21:01
 * @UpdateDate: [dateFormat:YYYY-MM-DD][modifier][description]
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Person {
    @JSONField(name = "AGE(★)")
    private int age;

    @JSONField(name = "FULL NAME(★)", ordinal = 2)
    private String name;

    @JSONField(name = "DATE OF BRITH TO Wangzz", ordinal = 1, format = "yyyy-MM-dd")
    private Date brithDate;
}
